<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
    <title>更新</title>
    <c:import url="hcommon.jsp"></c:import>
    <c:import url="header.jsp"></c:import>
    <c:import url="left.jsp"></c:import>
</head>
<body>
<div style="text-align: center; width: 500px; margin: 0 auto;margin-top:68px" >
    <form action="updateGoods.action" method="post" enctype="multipart/form-data">
        <input type="hidden" name="gid" value="${in.gid}">
        <div class="form-group">
          <label for="gname">商品名称</label>
           <input type="text" class="form-control"
            id="gname" name="gname" value="${in.gname}">
        </div>
        <div class="form-group">
            <label for="gphoto">商品图片</label> <input type="file" class="form-control"
                                                    id="gphoto" name="file" value="${in.gphoto}">
        </div>
        <div class="form-group">
            <label for="gprice">商品价格</label> <input type="text" class="form-control"
            id="gprice" name="gprice" value="${in.gprice}">
        </div>
        <div class="form-group">
            <label for="ggrade">商品评分</label> <input type="text" class="form-control"
            id="ggrade" name="ggrade" value="${in.ggrade}" >
        </div>
   <div class="form-group">
    <label for="tid">商品种类:</label>
    <select class="select" name="tid" size="1" id="tid" >
        <option value="1">水果</option>
        <option value="2">生鲜</option>
        <option value="3">百货</option>
    </select>
  </div>
  <div class="form-group">
    <label for="sid">门店名称:</label>
    <select class="select" name="sid" size="1" id="sid" >
        <option value="1">高新</option>
        <option value="2">雁塔</option>
        <option value="3">未央</option>
    </select>
   </div>
        <input type="submit" value="提交" class="btn">

    </form>
</div>
</body>
</html>
